package com.oro.backingbeans;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.apache.log4j.Logger;

import com.oro.domain.Studente;

public class InserisciStudenteSuccessBean implements Serializable {

	private static final Logger logger = Logger
			.getLogger(InserisciUtenteBean.class);

	/**
	 * 
	 */
	private static final long serialVersionUID = -2720312438066882674L;

	private Studente studentOutput;

	public InserisciStudenteSuccessBean() {
		super();
		setStudentOutput(new Studente());
	}

	private Logger getLogger() {
		return logger;
	}

	public Studente getStudentOutput() {
		return studentOutput;
	}

	@PostConstruct
	public void postConstruct() {
		getLogger().info("InserisciStudentSuccessBean has been constructed.");
	}

	@PreDestroy
	public void preDestroy() {
		getLogger().info("InserisciStudentSuccessBean is being destroyed.");
	}

	public void setStudentOutput(Studente studentOutput) {
		this.studentOutput = studentOutput;
	}

}
